package net.net23.sysdent.client.controller;

import java.util.HashMap;

import net.net23.sysdent.client.ui.image.T4LImages;
import net.net23.sysdent.client.ui.widgets.model.ContentWidget;

import com.google.gwt.core.client.GWT;

public class AppController {

	private static HashMap<String, ContentWidget> registeredWidgets = null;

	public static T4LImages images = GWT.create(T4LImages.class);

	public static HashMap<String, ContentWidget> getRegisteredWidgets() {
		if (registeredWidgets == null) {
			registeredWidgets = new HashMap<String, ContentWidget>();
		}
		return registeredWidgets;
	}

	public static void registerWidget(ContentWidget widget) {
		getRegisteredWidgets().put(widget.getKey(), widget);
	}
}
